﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace web7
{
    public partial class _2016020719 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session.IsNewSession)
            {
                Application.Lock();
                Application["count"] = (int)Application["count"] + 1;
                Application.UnLock();
            }
            Session["count"] = (int)Session["count"] + 1;
            Response.Write("您是第" + Application["count"] + "位来访者" + "<br>");
            Response.Write("您是第" + Session["count"] + "次访问本网站" + "<br>");
            Response.Write("您的 SessionID 为：" + Session.SessionID);

        }
    }
}